@extends('frontend/layouts/flaty_to_bootstrap')

@section('content.titley')
Edit CustomerBillType [{{  $customerBillType->id }}] ::
@parent
@stop

    @section('content.breadcrumb.inner')
    <li><a href="{{  route('home') }}"><i class="icon-home"></i> Dashboard</a><span class="divider"><i class="icon-angle-right"></i></span></li>
    <li><a href="{{  route('car_balance.customerBillType.index') }}"><i class="icon-home"></i> CustomerBillType list</a><span class="divider"><i class="icon-angle-right"></i></span></li>
    <li class="active">Edit CustomerBillType [{{  $customerBillType->id }}] </li>
    @stop

@section('content.main')

<p>{{ link_to_route('car_balance.customerBillType.index', 'Back to CustomerBillType list', null, array('class' => 'btn btn-info')) }}</p>

<div class="row-fluid">
    {{ Form::open(array('route' => array('car_balance.customerBillType.edit', $customerBillType->id), 'class' => 'form-horizontal')) }}

    <div  class="control-group {{ $errors->first('customer_id', ' error') }}">
        <label class="control-label" for="customer_id">Customer ID</label>
        <div class="controls">
            <input class="" placeholder="Customer ID" title="Customer ID" name="customer_id" type="text" value="{{ Input::old('customer_id', $customerBillType->customer_id) }}">
            {{ $errors->first('customer_id', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div  class="control-group {{ $errors->first('bill_type', ' error') }}">
        <label class="control-label" for="bill_type">Bill type</label>
        <div class="controls">
            <input class="" placeholder="Bill type" title="Bill type" name="bill_type" type="text" value="{{ Input::old('bill_type', $customerBillType->bill_type) }}">
            {{ $errors->first('bill_type', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div  class="control-group {{ $errors->first('date_from', ' error') }}">
        <label class="control-label" for="date_from">Date from</label>
        <div class="controls">
            <input class="" placeholder="Date from" title="Date from" name="date_from" type="text" value="{{ Input::old('date_from', $customerBillType->date_from) }}">
            {{ $errors->first('date_from', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div  class="control-group {{ $errors->first('date_to', ' error') }}">
        <label class="control-label" for="date_to">Date to</label>
        <div class="controls">
            <input class="" placeholder="Date to" title="Date to" name="date_to" type="text" value="{{ Input::old('date_to', $customerBillType->date_to) }}">
            {{ $errors->first('date_to', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div  class="control-group {{ $errors->first('commission', ' error') }}">
        <label class="control-label" for="commission">Commission</label>
        <div class="controls">
            <input class="" placeholder="Commission" title="Commission" name="commission" type="text" value="{{ Input::old('commission', $customerBillType->commission) }}">
            {{ $errors->first('commission', '<span class="help-inline">:message</span>') }}
        </div>
    </div>


    <div class="form-actions">
        {{  Form::submit('Submit', array('class' => 'btn btn-info')) }} &nbsp;&nbsp;
        {{  link_to_route('car_balance.customerBillType.index', 'Cancel', null, array('class' => 'btn ')) }}
    </div>
    {{  Form::close() }}
@stop